package com.qf.Entity;

import java.util.Date;

/*2021/10/9*/public class Product {
    private int pId;
    private String pName;
    private Date pDate;
    private String pVender;
    private Double pPrice;
    private int pType;
    private int cId;
    private Category category;

    @Override
    public String toString() {
        return "Product{" +
                "pId=" + pId +
                ", pName='" + pName + '\'' +
                ", pDate=" + pDate +
                ", pVender='" + pVender + '\'' +
                ", pPrice='" + pPrice + '\'' +
                ", pType=" + pType +
                ", cId=" + cId +
                ", category=" + category +
                '}';
    }

    public Category getCategory() {
        return category;
    }

    public void setCategory(Category category) {
        this.category = category;
    }

    public Product(int pId, String pName, Date pDate, String pVender, Double pPrice, int pType, int cId) {
        this.pId = pId;
        this.pName = pName;
        this.pDate = pDate;
        this.pVender = pVender;
        this.pPrice = pPrice;
        this.pType = pType;
        this.cId = cId;
    }

    public Product() {
    }

    public int getpId() {
        return pId;
    }

    public void setpId(int pId) {
        this.pId = pId;
    }

    public String getpName() {
        return pName;
    }

    public void setpName(String pName) {
        this.pName = pName;
    }

    public Date getpDate() {
        return pDate;
    }

    public void setpDate(Date pDate) {
        this.pDate = pDate;
    }

    public String getpVender() {
        return pVender;
    }

    public void setpVender(String pVender) {
        this.pVender = pVender;
    }

    public Double getpPrice() {
        return pPrice;
    }

    public void setpPrice(Double pPrice) {
        this.pPrice = pPrice;
    }

    public int getpType() {
        return pType;
    }

    public void setpType(int pType) {
        this.pType = pType;
    }

    public int getcId() {
        return cId;
    }

    public void setcId(int cId) {
        this.cId = cId;
    }
}
